<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: cv::LDA Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../db/d59/classcv_1_1LDA.html">LDA</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="../../d1/daa/classcv_1_1LDA-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::LDA Class Reference<div class="ingroups"><a class="el" href="../../d0/de1/group__core.html">Core functionality</a> &raquo; <a class="el" href="../../d2/de8/group__core__array.html">Operations on arrays</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>Linear Discriminant Analysis.  
 <a href="../../db/d59/classcv_1_1LDA.html#details">More...</a></p>

<p><code>#include &lt;opencv2/core.hpp&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6d654ebfab272bf734a6ffa35b3ce908"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a6d654ebfab272bf734a6ffa35b3ce908">LDA</a> (int num_components=0)</td></tr>
<tr class="memdesc:a6d654ebfab272bf734a6ffa35b3ce908"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor Initializes a <a class="el" href="../../db/d59/classcv_1_1LDA.html" title="Linear Discriminant Analysis. ">LDA</a> with num_components (default 0).  <a href="#a6d654ebfab272bf734a6ffa35b3ce908">More...</a><br /></td></tr>
<tr class="separator:a6d654ebfab272bf734a6ffa35b3ce908"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e8ec64b33aea2317631be0f9b85d833"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a5e8ec64b33aea2317631be0f9b85d833">LDA</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> labels, int num_components=0)</td></tr>
<tr class="separator:a5e8ec64b33aea2317631be0f9b85d833"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af925c22e1ac537e20660036b7fcf3f55"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#af925c22e1ac537e20660036b7fcf3f55">~LDA</a> ()</td></tr>
<tr class="separator:af925c22e1ac537e20660036b7fcf3f55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68c714a24483a1afd1864fbac7fe2048"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a68c714a24483a1afd1864fbac7fe2048">compute</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> labels)</td></tr>
<tr class="separator:a68c714a24483a1afd1864fbac7fe2048"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09eeb511758f419c8d079489e2c5c939"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a09eeb511758f419c8d079489e2c5c939">eigenvalues</a> () const</td></tr>
<tr class="separator:a09eeb511758f419c8d079489e2c5c939"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70ef2afa53f4eb93b4b98a8e359cc628"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a70ef2afa53f4eb93b4b98a8e359cc628">eigenvectors</a> () const</td></tr>
<tr class="separator:a70ef2afa53f4eb93b4b98a8e359cc628"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5a8bf45f2ad6aee3b8b02a816cb1282"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#ab5a8bf45f2ad6aee3b8b02a816cb1282">load</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename)</td></tr>
<tr class="separator:ab5a8bf45f2ad6aee3b8b02a816cb1282"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace12ed0301bbd01b8fc16934c9a4c580"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#ace12ed0301bbd01b8fc16934c9a4c580">load</a> (const <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;node)</td></tr>
<tr class="separator:ace12ed0301bbd01b8fc16934c9a4c580"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8b4067465dda3972a74d4f15ef1087c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#ac8b4067465dda3972a74d4f15ef1087c">project</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src)</td></tr>
<tr class="separator:ac8b4067465dda3972a74d4f15ef1087c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64eb8bb493d5c491e6d28ea04501c068"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a64eb8bb493d5c491e6d28ea04501c068">reconstruct</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src)</td></tr>
<tr class="separator:a64eb8bb493d5c491e6d28ea04501c068"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6576e46845c6c06257d8093cb9fcf591"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a6576e46845c6c06257d8093cb9fcf591">save</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename) const</td></tr>
<tr class="separator:a6576e46845c6c06257d8093cb9fcf591"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4af51bffed68599c187003dc73fdba1d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a4af51bffed68599c187003dc73fdba1d">save</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="separator:a4af51bffed68599c187003dc73fdba1d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a69c7019a344edc5c55799c16a9fc9ada"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a69c7019a344edc5c55799c16a9fc9ada">subspaceProject</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> W, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src)</td></tr>
<tr class="separator:a69c7019a344edc5c55799c16a9fc9ada"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbf9949e7567e23af5f71c29fcef76d4"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#acbf9949e7567e23af5f71c29fcef76d4">subspaceReconstruct</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> W, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> <a class="el" href="../../d2/de8/group__core__array.html#ga191389f8a0e58180bb13a727782cd461">mean</a>, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> src)</td></tr>
<tr class="separator:acbf9949e7567e23af5f71c29fcef76d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a3c05e9ccb53db6cae9254a71d73c87dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#a3c05e9ccb53db6cae9254a71d73c87dd">lda</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> src, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> labels)</td></tr>
<tr class="separator:a3c05e9ccb53db6cae9254a71d73c87dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:abfe6e11fba50470efba487829e099077"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#abfe6e11fba50470efba487829e099077">_eigenvalues</a></td></tr>
<tr class="separator:abfe6e11fba50470efba487829e099077"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5cdbca7882b091f61a0d5835e3a20e5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#aa5cdbca7882b091f61a0d5835e3a20e5">_eigenvectors</a></td></tr>
<tr class="separator:aa5cdbca7882b091f61a0d5835e3a20e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8f8148c967cd73f3f3fd570549dc38b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d59/classcv_1_1LDA.html#af8f8148c967cd73f3f3fd570549dc38b">_num_components</a></td></tr>
<tr class="separator:af8f8148c967cd73f3f3fd570549dc38b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Linear Discriminant Analysis. </p>
<dl class="todo"><dt><b><a class="el" href="../../dd/da0/todo.html#_todo000004">Todo:</a></b></dt><dd>document this class </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a6d654ebfab272bf734a6ffa35b3ce908"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d654ebfab272bf734a6ffa35b3ce908">&#9670;&nbsp;</a></span>LDA() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::LDA::LDA </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num_components</em> = <code>0</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>constructor Initializes a <a class="el" href="../../db/d59/classcv_1_1LDA.html" title="Linear Discriminant Analysis. ">LDA</a> with num_components (default 0). </p>

</div>
</div>
<a id="a5e8ec64b33aea2317631be0f9b85d833"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e8ec64b33aea2317631be0f9b85d833">&#9670;&nbsp;</a></span>LDA() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::LDA::LDA </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>labels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>num_components</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initializes and performs a Discriminant Analysis with Fisher's Optimization Criterion on given data in src and corresponding labels in labels. If 0 (or less) number of components are given, they are automatically determined for given data in computation. </p>

</div>
</div>
<a id="af925c22e1ac537e20660036b7fcf3f55"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af925c22e1ac537e20660036b7fcf3f55">&#9670;&nbsp;</a></span>~LDA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::LDA::~LDA </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>destructor </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a68c714a24483a1afd1864fbac7fe2048"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68c714a24483a1afd1864fbac7fe2048">&#9670;&nbsp;</a></span>compute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::LDA::compute </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>labels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Compute the discriminants for data in src (row aligned) and labels. </p>

</div>
</div>
<a id="a09eeb511758f419c8d079489e2c5c939"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09eeb511758f419c8d079489e2c5c939">&#9670;&nbsp;</a></span>eigenvalues()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::LDA::eigenvalues </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the eigenvalues of this <a class="el" href="../../db/d59/classcv_1_1LDA.html" title="Linear Discriminant Analysis. ">LDA</a>. </p>

</div>
</div>
<a id="a70ef2afa53f4eb93b4b98a8e359cc628"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70ef2afa53f4eb93b4b98a8e359cc628">&#9670;&nbsp;</a></span>eigenvectors()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::LDA::eigenvectors </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the eigenvectors of this <a class="el" href="../../db/d59/classcv_1_1LDA.html" title="Linear Discriminant Analysis. ">LDA</a>. </p>

</div>
</div>
<a id="a3c05e9ccb53db6cae9254a71d73c87dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c05e9ccb53db6cae9254a71d73c87dd">&#9670;&nbsp;</a></span>lda()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::LDA::lda </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a>&#160;</td>
          <td class="paramname"><em>src</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>labels</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="ab5a8bf45f2ad6aee3b8b02a816cb1282"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5a8bf45f2ad6aee3b8b02a816cb1282">&#9670;&nbsp;</a></span>load() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::LDA::load </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Deserializes this object from a given filename. </p>

</div>
</div>
<a id="ace12ed0301bbd01b8fc16934c9a4c580"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace12ed0301bbd01b8fc16934c9a4c580">&#9670;&nbsp;</a></span>load() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::LDA::load </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Deserializes this object from a given <a class="el" href="../../da/d56/classcv_1_1FileStorage.html" title="XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...">cv::FileStorage</a>. </p>

</div>
</div>
<a id="ac8b4067465dda3972a74d4f15ef1087c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac8b4067465dda3972a74d4f15ef1087c">&#9670;&nbsp;</a></span>project()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::LDA::project </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Projects samples into the <a class="el" href="../../db/d59/classcv_1_1LDA.html" title="Linear Discriminant Analysis. ">LDA</a> subspace. src may be one or more row aligned samples. </p>

</div>
</div>
<a id="a64eb8bb493d5c491e6d28ea04501c068"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64eb8bb493d5c491e6d28ea04501c068">&#9670;&nbsp;</a></span>reconstruct()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::LDA::reconstruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Reconstructs projections from the <a class="el" href="../../db/d59/classcv_1_1LDA.html" title="Linear Discriminant Analysis. ">LDA</a> subspace. src may be one or more row aligned projections. </p>

</div>
</div>
<a id="a6576e46845c6c06257d8093cb9fcf591"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6576e46845c6c06257d8093cb9fcf591">&#9670;&nbsp;</a></span>save() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::LDA::save </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;&#160;</td>
          <td class="paramname"><em>filename</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Serializes this object to a given filename. </p>

</div>
</div>
<a id="a4af51bffed68599c187003dc73fdba1d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4af51bffed68599c187003dc73fdba1d">&#9670;&nbsp;</a></span>save() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::LDA::save </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;&#160;</td>
          <td class="paramname"><em>fs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Serializes this object to a given <a class="el" href="../../da/d56/classcv_1_1FileStorage.html" title="XML/YAML/JSON file storage class that encapsulates all the information necessary for writing or readi...">cv::FileStorage</a>. </p>

</div>
</div>
<a id="a69c7019a344edc5c55799c16a9fc9ada"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69c7019a344edc5c55799c16a9fc9ada">&#9670;&nbsp;</a></span>subspaceProject()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::LDA::subspaceProject </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>W</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="acbf9949e7567e23af5f71c29fcef76d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbf9949e7567e23af5f71c29fcef76d4">&#9670;&nbsp;</a></span>subspaceReconstruct()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::LDA::subspaceReconstruct </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>W</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>mean</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a>&#160;</td>
          <td class="paramname"><em>src</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="abfe6e11fba50470efba487829e099077"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abfe6e11fba50470efba487829e099077">&#9670;&nbsp;</a></span>_eigenvalues</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::LDA::_eigenvalues</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aa5cdbca7882b091f61a0d5835e3a20e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5cdbca7882b091f61a0d5835e3a20e5">&#9670;&nbsp;</a></span>_eigenvectors</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::LDA::_eigenvectors</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="af8f8148c967cd73f3f3fd570549dc38b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8f8148c967cd73f3f3fd570549dc38b">&#9670;&nbsp;</a></span>_num_components</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int cv::LDA::_num_components</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../d0/d9c/core_2include_2opencv2_2core_8hpp.html">core.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:43 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
